package com.example.springcloudprovider.service.deptserviceimpl;

import com.example.springcloudapi.pojo.Dept;
import com.example.springcloudprovider.dao.DeptMapper;
import com.example.springcloudprovider.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    private DeptMapper deptMapper;

    @Override
    public Dept queryAllDeptByNo(Long deptno) {
        return deptMapper.queryAllDeptByNo(deptno);
    }

    @Override
    public List<Dept> queryAllDept() {
        return deptMapper.queryAllDept();
    }
}
